package com.stu.dao;

import com.stu.model.StudentAnswer;
import com.stu.model.User;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {
    public List<User> getAllTeacher() throws SQLException;
    public List<User> getSearchTeacher(String searchText) throws SQLException;
    public List<User> goMyTeacher(String userAccount) throws SQLException;
    public int isExistStuTea(String userAccount,String teacherAccount ) throws SQLException;
    public void addTeacher(String userAccount,String teacherAccount) throws SQLException;
public List<StudentAnswer> goMyTeaTask(String userAccount,String teacherAccount) throws SQLException;
public void deleteMyTeacher(String userAccount,String teacherAccount) throws SQLException;
public void doAnswer(String userAccount,String taskAccount,String answer) throws SQLException;
public void dealFenshu(String taskAccount,String studentAccount,String fenshu) throws SQLException;
}
